﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JXT.PrimaryKey.Batman.Domain.Models;

namespace JXT.PrimaryKey.Batman.Domain.UserSystem.Models
{
    [Serializable]
    public class UserDetail : ValueObjectBase<UserDetail>
    {
        public int UserId { get; set; }

        public int Source { get; set; }

        public string RealName { get; set; }

        public string NickName { get; set; }

        public string Address { get; set; }

        public string Phone { get; set; }

        public string Mobile { get; set; }

        public Gender Gender { get; set; }

        public string Identity { get; set; }

        public string Signature { get; set; }

        public override bool Equals(UserDetail other)
        {
            if (other == null)
                return false;
            return UserId == other.UserId
                && Source == other.Source
                && RealName == other.RealName
                && NickName == other.NickName
                && Address == other.Address
                && Phone == other.Phone
                && Mobile == other.Mobile
                && Gender == other.Gender
                && Identity == other.Identity
                && Signature == other.Signature;
        }
    }
}
